<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>加入活动</title>
    <style>
        body{
            background-image: url("images/绿色背景.jpg");
        }
    </style>
</head>
<body>
<script type="text/javascript">
    function getQueryVariable(variable)
    {
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);
    }

    const teamid = getQueryVariable("teamid");
    const memberid = getQueryVariable("memberid");
    const password = getQueryVariable("password");

</script>

<form style="
margin-left:auto;
margin-right:auto;
max-width: 500px;
background: #F8F8F8;
padding: 30px 30px 20px 30px;
font: 12px Arial, Helvetica, sans-serif;
color: #666;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;" action="active/search" method="post">
    <h2 style="color: #57AA2C">根据队伍ID查询近期活动</h2>
    <hr><br>
    <script type="text/javascript">

        document.write('队伍ID：<input style="display: block;margin: 0px 0px 5px;" type="text" name="teamid" required="required" value="'+teamid+'" />');
        document.write('<input style="display: block;margin: 0px 0px 5px;" type="hidden" name="memberid" required="required" value="'+memberid+'" />');

    </script>
    <br />
    <input style="
    background-color: #9DC45F;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-border-radius: 5px;
border: none;
padding: 10px 25px 10px 25px;
color: #FFF;
text-shadow: 1px 1px 1px #949494;" type="submit" value="立即查询！"/>
</form>
<form style="
margin-left:auto;
margin-right:auto;
max-width: 500px;
background: #F8F8F8;
padding: 30px 30px 20px 30px;
font: 12px Arial, Helvetica, sans-serif;
color: #666;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;" action="../member/login" method="post">
    <script type="text/javascript">
        document.write('<input type="hidden" name="memberid" value="'+memberid+'" />');
        document.write('<input type="hidden" name="password" value="'+password+'" />');
    </script>
    <input type="submit" value="回到个人空间" />
</form>

</body>
</html>